/**
 * @file Global_cpp
 * @author Derek Liu (yjkhtddx@sina_com)
 * @brief 全局变量
 * @version 0_0_1
 * @date 2020-07-18
 * 
 * @coryright Copyright Sci-Tech Laboratories (c) 2020
 * 
 */

#include "Global.hpp"
#include <string>
#include <stdint.h>
#include <eXosip2/eXosip.h>

eXosip_t *g_excontext = nullptr;

std::string g_local_sip_cfg_svr_id = "41010200002000000001";
std::string g_local_sip_cfg_svr_domain = "4101020000";
std::string g_local_sip_cfg_svr_ip = "10.0.0.42";
uint16_t g_local_sip_cfg_svr_port = 5566;

std::string g_remote_sip_cfg_svr_id = "34020000002000000001";
std::string g_remote_sip_cfg_svr_domain = "3402000000";
std::string g_remote_sip_cfg_svr_ip = "127.0.0.1";
uint16_t g_remote_sip_cfg_svr_port = 5066;
std::string g_remote_sip_cfg_passwd = "123456";

std::string g_sip_from_ipport = "sip:" + g_local_sip_cfg_svr_id + "@" + g_local_sip_cfg_svr_ip + ":" + std::to_string(g_local_sip_cfg_svr_port);
std::string g_sip_from_domain = "sip:" + g_local_sip_cfg_svr_id + "@" + g_local_sip_cfg_svr_domain;
std::string g_sip_proxy_ipport = "sip:" + g_remote_sip_cfg_svr_ip + "@" + g_remote_sip_cfg_svr_ip + ":" + std::to_string(g_remote_sip_cfg_svr_port);
std::string g_sip_proxy_domain = "sip:" + g_remote_sip_cfg_svr_ip + "@" + g_remote_sip_cfg_svr_domain;